package cn.edu.scau.cmi.heyonglin.simpleFactoryMethod;

public class MeatFactory {
	public static Meat getMeat(String meatTypeString) {
		Meat m=null;
		if(meatTypeString.equals("beef")) {
			m=new Beef();
		}
		if(meatTypeString.equals("pork")) {
			m=new Pork();
		}
		if(meatTypeString.equals("chicken")) {
			m=new Chicken();
		}
		return m;
	}
}
